package cn.edu.scau.cmi.houzhicong.hibernate.domain;

import java.util.Set;

public class Teacher implements java.io.Serializable {

    private String id;
    private String name;
    private Set<Student> students;

    public Teacher() { }


    public Teacher(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public Teacher(String id, String name, Set<Student> students) {
        this.id = id;
        this.name = name;
        this.students = students;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Student> getStudents() {
        return students;
    }

    public void setStudents(Set<Student> students) {
        this.students = students;
    }
}
